package cn.itsource.pethome.dept.domain;

import cn.itsource.pethome.base.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BaseDomain {

    private String sn;//部门编号
    private String name;//部门名称
    private String dirPath;//部门的层级
    private Integer state;//部门的状态

    private Long manager_id;//管理员id
    private Employee manager;
    private Long parent_id;//父级部门id
    private Department parent;
    //专门用来放儿子的
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Department> children = new ArrayList<>();
}
